<?php
/**
 * 
 * 问卷管理模块
 * @author sina
 *
 */
class _AskModule extends ModuleBase
{
	public static function add($row)
	{
		return parent::queryInsert($row, 'ask');
	}
	
	public static function del($id)
	{
		$where = array('id'=>$id);
		return parent::queryDelete($where, 'ask');
	}
	
	public static function update($id, $row)
	{
		$where = array('id'=>$id);
		return parent::queryUpdate($row, $where, 'ask');
	}
	
	public static function getAskById($id)
	{
		$where = array('id'=>$id);
		return parent::querySelectSingle(array('*'), $where, 'ask');
	}
	
	public static function getAskByTitle($title)
	{
		$where = array('title'=>$title);
		return parent::querySelectSingle(array('*'), $where, 'ask');
	}
}
?>